/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-07-31 21:29:54
 * @FilePath: /yuxiuproweb/src/api/transport/logistics/index.js
 */
import request from "@/utils/request";

// 查询物流公司 列表
export function listCompany(query) {
  return request({
    url: "/md/company/list",
    method: "get",
    params: query,
  });
}

// 查询物流公司 详细
export function getCompany(logisticsCompanyId) {
  return request({
    url: "/md/company/" + logisticsCompanyId,
    method: "get",
  });
}

// 新增物流公司
export function addCompany(data) {
  return request({
    url: "/md/company",
    method: "post",
    data: data,
  });
}

// 修改物流公司
export function updateCompany(data) {
  return request({
    url: "/md/company",
    method: "put",
    data: data,
  });
}

// 删除物流公司
export function delCompany(logisticsCompanyId) {
  return request({
    url: "/md/company/" + logisticsCompanyId,
    method: "delete",
  });
}
